package controller

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

func TestGet(c *gin.Context) {
	name := c.DefaultQuery("name", "get")
	id := c.Query("id")
	c.String(200, fmt.Sprintf("method is get , params-name: %s , id:%s\n", name, id))
 }

 func TestPost(c *gin.Context)  {
	name := c.DefaultQuery("name", "post")
	c.String(200, fmt.Sprintf("ethod is get , params-name:  %s\n", name))
 }
 func RestfulGet(c *gin.Context)  {
	 
 }